package org.aldar.bquest.areas;

import org.andengine.entity.text.Text;

/**
 * Created with IntelliJ IDEA.
 * User: Daria
 * Date: 4/14/13
 * Time: 10:36 PM
 * To change this template use File | Settings | File Templates.
 */
public class LongestChainArea {

    /**
     * 最长连接*
     */
    private int mLongestChain = 0;
    private int mLongestChainTemp = 0;
    private Text mLongestChainText;


    /**
     * 更新最长连接
     */
    private void updateLongestChain() {
        this.mLongestChainTemp++;
        if (mLongestChainTemp > mLongestChain) {
            mLongestChain = mLongestChainTemp;
            this.mLongestChainText.setText(String.valueOf(mLongestChain));
        }
    }


}
